package org.phoenix.mall.admin.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "t_attribute")
public class Attribute {
    /**
     * 分类参数ID
     */
    @Id
    private Integer id;

    /**
     * 参数名称
     */
    @Column(name = "attr_name")
    private String attrName;

    /**
     * 参数值
     */
    @Column(name = "attr_vals")
    private String attrVals;

    /**
     * 分类ID
     */
    @Column(name = "category_id")
    private Integer categoryId;

    /**
     * 参数类型 only:静态属性，many:动态属性
     */
    @Column(name = "attr_sel")
    private String attrSel;

    /**
     * 参数录入方式 manual:手动录入，list:从列表选择
     */
    @Column(name = "attr_write")
    private String attrWrite;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
}